<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>v-on:(@)</title>
    <script src="node_modules/vue/dist/vue.js"></script>
</head>
<body>
<div id="app">
    <ul>
        <li v-for="(user,index) in users">
            {{index}}--{{user.name}}--{{user.age}}--{{user.gender}}
        </li>
    </ul>
    <hr>
    <ul>
        <li v-for="(key,value,index) in user">
            {{index}}--{{key}}--{{value}}
        </li>
    </ul>
</div>
<script type="text/javascript">
    var app=new Vue({
        el:"#app",
        data:{
            users:[
                {"name":"张三","age":23,"gender":"男"},
                {"name":"李四","age":33,"gender":"女"},
                {"name":"王五","age":25,"gender":"男"},
                {"name":"赵六","age":25,"gender":"女"}
            ],
            user:{"name":"张三","age":23,"gender":"男"}
        }
    });
</script>
</body>
</html>